import request from '@/utils/request'

const storageServer = process.env.VUE_APP_API_PERSON_SERVICE_URL || '/hr-basic-staff'
export function queryRootUnit (data) {
  // 查询树结构 根节点信息
  return request({
    url: `${storageServer}/emp/organ/root/by/type`,
    method: 'post',
    data
  })
}
export function queryChildUnits (data) {
  // 查询树结构 根节点信息
  return request({
    url: `${storageServer}/emp/organ/tree`,
    method: 'post',
    data
  })
}
